/**
 * Copyright (c) 2015-2030 by Beijing Yanlight Co., Ltd.
 * All rights reserved.
 */
package com.yanlight.app.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.yanlight.app.service.AlipayService;
import com.yanlight.support.http.Response;
import com.yanlight.util.ResponseUtil;

/**
 * 
 * @author haolw
 * @time 2017/08/25
 */
@RestController
@RequestMapping("/alipay")
public class AlipayController {
	@Autowired
	private AlipayService alipayService;
	
	@PostMapping("/getPid")
	public Response getPid(Integer companyId) {
		return ResponseUtil.success(alipayService.findPid(companyId));
	}
}
